#include "stdafx.h"
#include "ckRasterEnvironment.h"
#include <gdal_priv.h>

namespace ck
{
	namespace data
	{
		RasterEnvironment::RasterEnvironment()
		{
		}


		RasterEnvironment::~RasterEnvironment()
		{
		}

		int	RasterEnvironment::Initialize()
		{
			GDALAllRegister();
			OGRRegisterAll();
			CPLSetConfigOption("GDAL_FILENAME_IS_UTF8", "NO");
			CPLSetConfigOption("SHAPE_ENCODING", "GBK");

			return 0;

		}

		void RasterEnvironment::UnInitialize()
		{

		}
	}
}